home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / onceaday.zip / ONCEADAY.DOC next >
Text File  |  1991-07-08  |  3KB  |  96 lines

  1.      
  2.      
  3.                                   ONCEADAY
  4.                                 Version 1.0
  5.      
  6.                       Copyright (c) 1991 Mark Klaamas
  7.      
  8.      
  9.      This program  is used  to run certain  commands only  once a day.
  10.      Just place it in your autoexec.
  11.      
  12.      ----------------------------------------------------------------
  13.      
  14.      Example Autoexec.bat
  15.      
  16.      @ECHO OFF
  17.           SET COMSPEC=C:\COMMAND.COM
  18.           PATH=c:\;c:\dos;c:\util;
  19.           PROMPT= $l$l $p $g$g $e[0;31;0m 
  20.      :: Call Once a  Day program with name of  program to run it true.
  21.           onceaday
  22.                if Errorlevel 10 goto onceday
  23.      :Return
  24.      
  25.      :: Load in a murphy law !!
  26.           cls
  27.           murf c:\util\
  28.           echo  
  29.           echo  
  30.           pause
  31.           goto end
  32.      :: End of Autoexec.bat file.
  33.      
  34.      :: A routine to run ONCE A DAY.
  35.      
  36.      :onceday
  37.           :: Things do do once a day.
  38.           cls
  39.           echo This appears only once a day.
  40.           goto Return
  41.      :end
  42.      
  43.      end autoexec.bat
  44.      
  45.      ----------------------------------------------------------------
  46.      
  47.      You could set up a second  batch file with the commands you would
  48.      like to run.
  49.      
  50.      For example
  51.      
  52.      Autoexec.bat
  53.      
  54.      @ECHO OFF
  55.           SET COMSPEC=C:\COMMAND.COM
  56.           PATH=c:\;c:\dos;c:\util;
  57.           PROMPT= $l$l $p $g$g $e[0;31;0m 
  58.      :: Call Once a  Day program with name of  program to run it true.
  59.           onceaday
  60.                if Errorlevel 10 Call onceaday.bat
  61.      :: Continue with autoexec.bat
  62.      
  63.      end autoexec.bat
  64.      
  65.      onceaday.bat
  66.      @echo off
  67.      :: Things to do once a day.
  68.          echo this only showes up once a day.
  69.      
  70.      end onceaday.bat
  71.      
  72.      ----------------------------------------------------------------
  73.      
  74.      This program is  FREEWARE.  This means that  it can be freely use
  75.      and giving away this program.  You can NOT modify the contents of
  76.      the zip file or  give away only parts of  the zip file.  You must
  77.      distribute the entire zip file.
  78.      
  79.          If you would like  to donate money for  using the use of this
  80.          program you can send any money to:
  81.      
  82.                               Mark Klaamas
  83.                               13 Apollo Court
  84.                               Halifax, NS
  85.                               Canada
  86.                               B3M 1G9
  87.      
  88.      The Turbo Pascal  source code for this  program is available from
  89.      me at  the price  of $10.00.  If  you want  a copy  of the source
  90.      code, please send  money and a  disk in a  self addressed stamped
  91.      floppy mailer to a address above.
  92.      
  93.      If you have any  question about the use of  this program I can be
  94.      contacted on various BBS networks ( NA-NET, Ilink, UNI'net ).  Or
  95.      you can send me a letter at the address above.
  96.